package cn.tedu.tmall.common.pojo.po;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;

@Data
@Document(indexName = "content_article")
public class ArticleSearchPO {

    @Id
    private Long id;

    private Long authorId;

    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String authorName;

    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String title;

    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String brief;

    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String keyWords;

    @Field(type = FieldType.Keyword)
    private  String coverUrl;

    private Integer clickCount;

    private Integer commentCount;
}
